﻿import request from '/@/utils/request';
enum Api {
  AddYnRd = '/api/ynRd/add',
  DeleteYnRd = '/api/ynRd/delete',
  UpdateYnRd = '/api/ynRd/update',
  PageYnRd = '/api/ynRd/page',
  DetailYnRd = '/api/ynRd/detail',
}

// 增加车辙数据
export const addYnRd = (params?: any) =>
	request({
		url: Api.AddYnRd,
		method: 'post',
		data: params,
	});

// 删除车辙数据
export const deleteYnRd = (params?: any) => 
	request({
			url: Api.DeleteYnRd,
			method: 'post',
			data: params,
		});

// 编辑车辙数据
export const updateYnRd = (params?: any) => 
	request({
			url: Api.UpdateYnRd,
			method: 'post',
			data: params,
		});

// 分页查询车辙数据
export const pageYnRd = (params?: any) => 
	request({
			url: Api.PageYnRd,
			method: 'post',
			data: params,
		});

// 详情车辙数据
export const detailYnRd = (id: any) => 
	request({
			url: Api.DetailYnRd,
			method: 'get',
			data: { id },
		});


